<?php
echo form_open($doaction,array("id" => "formlog"));
echo form_hidden($LastPost);
echo form_close();


?><script language="javascript">
document.getElementById("formlog").submit();
</script>